package com.jqh.openglesdemo.shader;

import android.content.Context;
import android.util.AttributeSet;

import com.jqh.openglesdemo.jqhopengl.GLSurfaceView;

// 自定义带纹理的surfaceview
public class JqhGLTextureView extends GLSurfaceView {

    private JqhTextureRender jqhTextureRender;
    public JqhGLTextureView(Context context) {
        this(context, null);
    }

    public JqhGLTextureView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public JqhGLTextureView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        jqhTextureRender = new JqhTextureRender(context);
        setRender(jqhTextureRender);
    }

    public JqhTextureRender getJqhTextureRender(){
        return jqhTextureRender;
    }
}
